import service from '../utils/request';
//上传excel
export const uploadPdfApi = async (formData) => {
  try {
    const res = await service.post('/api/ai/upload', formData, {
      headers: {
        'Content-Type': 'multipart/form-data'
      }
    })
    return res;
  }
    catch (error) {
      console.error('上传失败：', error);
      throw error;
    }
}

export function yhjlApi(data) {
  return service({
    url: '/api/ai/resume',
    method: 'post',
    data,
    timeout: 60000 // 仅此接口 30 秒超时
  })
}